package com.ukee.birthday.modules.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ukee.birthday.modules.entity.MealEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface MealDao extends BaseMapper<MealEntity> {

    IPage<MealEntity> queryPage(IPage<MealEntity> page,@Param("username")String username, @Param("state")String state, @Param("startTime")String startTime, @Param("endTime")String endTime);

    //员工所有的订餐记录
    List<MealEntity> getList(Integer uid);

    //员工本年的订餐记录
    List<MealEntity> getYearList(Integer uid, int year);

    //本月的所有订餐记录
    List<MealEntity> getMonthOrder(@Param("datef") String datef);

    //对应日期的所有订餐记录
    List<MealEntity> getDayList(@Param("datef") String datef);

    //[本年]核销记录
    List<MealEntity> getVerifyList(Integer vId,int year);

    //核销记录(分页)
    IPage<MealEntity> queryVerifyPage(IPage<MealEntity> page,@Param("vId")String vId, @Param("state")String state);

}
